<h1><?php echo $model->companyName; ?></h1>

<?php 
	$businessLabels = Business::model()->attributeLabels();
	$bModelLabels = BusinessModel::model()->attributeLabels();
?>
<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'businessDescription',
		'argumentation',
		//'business_id',
		//'businessModel_id',
         array(
                'label'=> $businessLabels['businessGoal'],
                'type'=>'raw',
                'value'=>$model->business->businessGoal,
          ),
         array(
                'label'=> $businessLabels['businessStatus'],
                'type'=>'raw',
                'value'=>$model->business->businessStatus,
          ), 
         
         array(
                'label'=> $businessLabels['economicSector_id'],
                'type'=>'raw',
                'value'=>EconomicSector::model()->findByPk($model->business->economicSector_id)->name,
          ),
          
          array(
                'label'=> $businessLabels['businessSector_id'],
                'type'=>'raw',
                'value'=>BusinessSector::model()->findByPk($model->business->businessSector_id)->name,
          ),
          
          array(
                'label'=> $businessLabels['industryGroup_id'],
                'type'=>'raw',
                'value'=>IndustryGroup::model()->findByPk($model->business->industryGroup_id)->name,
          ),
          
      	  array(
                'label'=> $bModelLabels['customerSegment'],
                'type'=>'raw',
                'value'=>$model->businessModel->customerSegment,
          ),
          
          array(
                'label'=> $bModelLabels['scale'],
                'type'=>'raw',
                'value'=>$model->businessModel->scale,
          ),
          array(
                'label'=> $bModelLabels['focus'],
                'type'=>'raw',
                'value'=>$model->businessModel->focus,
          ),

	),
	
	//render bcasesForm alternative, alternative, but work with objects not arrays
	
	//	'itemView'=>array('')
)); ?>
